package com.example.demo.dao;

import com.example.demo.entity.User;
import com.example.demo.entity.UserDepart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserDepartMapper {


    List<Long> seleteUserDepartByUserId( @Param("userId")long userId);

    int saveUserDepart(@Param("userId") long userId, @Param("departId")long departId);

    int updateUserDepart(@Param("userId") long userId, @Param("departId") long departId);

    int deleteUserDepart(@Param("userId") long userId, @Param("departId") long departId);
}
